package org.zjx.analyse.action;

import org.zjx.analyse.AbstractAction;
import org.zjx.analyse.IWindowAction;
import org.zjx.analyse.ScreenshotAnalyse;
import org.zjx.resolution.resolution.StartWindowResolution;
import org.zjx.util.HwndUtil;
import org.zjx.window.GameWindow;

public class StartWindowAction extends AbstractAction implements IWindowAction {

    public StartWindowAction( ScreenshotAnalyse screenshotAnalyse) {
        super(new StartWindowResolution(), screenshotAnalyse);
    }

    @Override
    public boolean isOpened() {
        return HwndUtil.haveHwnd(gameWindow.getHwnd());
    }

    @Override
    public void open() {

    }

    @Override
    public void close() {

    }

    @Override
    public void reSetWindow() {
        gameWindow.move(gameWindow.getInitPoint());
    }
}
